package com.wei.czz.common.vo.common.fileFlow;

import com.alibaba.fastjson2.annotation.JSONField;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2025-03-28 14:06:44
 * className: FileUploadVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class ChunkFileUploadVo extends BaseEntity {

    /**
     * 文件哈希值
     */
    @NotBlank(message = "文件哈希值不能为空")
    private String fileHash;

    /**
     * 切片文件哈希值
     */
    @NotBlank(message = "切片文件哈希值不能为空")
    private String chunkFileHash;

    /**
     * 切片文件序号
     */
    @NotNull(message = "切片文件序号不能为空")
    private Integer chunkSerial;

    /**
     * 切片文件
     */
    @JSONField(serialize = false)
    @NotNull(message = "切片文件不能为空")
    private MultipartFile file;

}
